//
//  WikipediaTableViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "WikipediaTableViewCell.h"
#import "UIView+Frame.h"
#import "UIView+Label.h"
#import "TAMacro.h"

@implementation WikipediaTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _imageView1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"2"]];
        _titleLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:17]];
        _pubdateLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:14]];
        _pubdateLabel.alpha = 0.5;
        
        [self.contentView addSubview:_imageView1];
        [self.contentView addSubview:_titleLabel];
        [self.contentView addSubview:_pubdateLabel];
        
    }
    return self;
}

- (void)layoutSubviews
{
    _imageView1.frame = CGRectMake(5, 5, 30, 30);
    _titleLabel.frame = CGRectMake(40, 5, 180, 20);
    _pubdateLabel.frame = CGRectMake(40, 25, 180, 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
